﻿using System;
using System.ComponentModel.DataAnnotations;

namespace LERP.Web.Controllers.ViewModels.GoodsCategoryViewModels
{
    public class GoodsCategoryViewModel
    {

        /// <summary>
        /// 类别编码
        /// </summary>  
        [Display(Name = "类别编码")]
        public virtual int Id { get; set; }

        /// <summary>
        /// 级别
        /// </summary>  
        [Display(Name = "级别")]
        public virtual int Level { get; set; }

        /// <summary>
        /// 父级类别
        /// </summary>  
        [Display(Name = "父级类别")]
        public virtual int ParentId { get; set; }
        /// <summary>
        /// 父级类别
        /// </summary>  
        [Display(Name = "父级类别")] 
        public virtual string ParentName { get; set; }
        /// <summary>
        /// 类别名称
        /// </summary>  
        [Display(Name = "类别名称")]
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(64, ErrorMessage = "{0}不能超过{1}个字符", MinimumLength = 0)]
        public virtual string DictionaryText { get; set; }
        /// <summary>
        /// 备注
        /// </summary>  
        [Display(Name = "备注")]
        [StringLength(255, ErrorMessage = "{0}不能超过{1}个字符", MinimumLength = 0)]
        public virtual string Remark { get; set; }


        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name = "修改时间")] 
        public virtual DateTime Modified { get; set; }
    }
}